home *** CD-ROM | disk | FTP | other *** search
- >Hi!
-
- Hi Peter
-
- >Is there a smooth way to sort 20 variables???
-
- If your using arrays (I think you are from the example) your better off
- to use 'for` loops. Is this for a high score table ? Anyways heres
- some example code.
-
- Dim HISCORES(19),HINAME$(19) } At the beginning of the program
-
- For C=19 To 0 Step -1 } Checks where your
- If SCORE>HISCORES(C) : POS=C : End If } score ranks in the
- Next C } high score table
- '
- For C=18 To POS Step -1
- HISCORES(C+1)=HISCORES(C) : HINAME$(C+1)=HINAME$(C) } Knocks all the
- Next C } down one from your pos
- '
- HISCORES(POS)=SCORE : HINAME$(POS)=NM$ } Puts your details into
- } high score
-
- If you need proper high score code then just email me personally and
- I`ll give you some.
-
- Anthony Sherratt
-
- --
- ÷ _ ____ ÷ ____`------------------------------------------°
- /.\ ÷ / __/ / __,\ *http://www.talk-101.com/users/asp*
- ,_/ ¡_\_ _/__ \_ / ___/ O°····································°O
- ,_____/ Y_ Y_ ¡ · o #Monty The Wolf - OUT VERY SOON# o
- | ¡ [ ] | [ ] | -÷- Oo.....................................O
- : : *DESIGN* : : ·
-
-
-
-